package com.server.mapper;

import com.server.Example.MoviesToTypeExample;
import com.server.entity.MoviesToType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Movies to type mapper.
 */
public interface MoviesToTypeMapper {
    /**
     * Count by example long.
     *
     * @param example the example
     * @return the long
     */
    long countByExample(MoviesToTypeExample example);

    /**
     * Delete by example int.
     *
     * @param example the example
     * @return the int
     */
    int deleteByExample(MoviesToTypeExample example);

    /**
     * Delete by primary key int.
     *
     * @param moviesToTypeId the movies to type id
     * @return the int
     */
    int deleteByPrimaryKey(Integer moviesToTypeId);

    /**
     * Insert int.
     *
     * @param record the record
     * @return the int
     */
    int insert(MoviesToType record);

    /**
     * Insert selective int.
     *
     * @param record the record
     * @return the int
     */
    int insertSelective(MoviesToType record);

    /**
     * Select by example list.
     *
     * @param example the example
     * @return the list
     */
    List<MoviesToType> selectByExample(MoviesToTypeExample example);

    /**
     * Select by primary key movies to type.
     *
     * @param moviesToTypeId the movies to type id
     * @return the movies to type
     */
    MoviesToType selectByPrimaryKey(Integer moviesToTypeId);

    /**
     * Update by example selective int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExampleSelective(@Param("record") MoviesToType record, @Param("example") MoviesToTypeExample example);

    /**
     * Update by example int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExample(@Param("record") MoviesToType record, @Param("example") MoviesToTypeExample example);

    /**
     * Update by primary key selective int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKeySelective(MoviesToType record);

    /**
     * Update by primary key int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKey(MoviesToType record);
}